package com.gesturesoft.imultimax.events
{
	import flash.events.Event;

	public class AddEntryEvent extends Event
	{
		//
		// Constants
		//

		public static const ADD_ENTRY_EVENT:String = "addEntryEvent";

		//
		// Properties
		//

		/**
		 * The label to add to the auto-complete option list
		 */
		private var _label:String;

		public function get label():String
		{
			return _label;
		}


		/**
		 * Constuctor
		 */
		public function AddEntryEvent(label:String)
		{
			super(ADD_ENTRY_EVENT, true, false);

			_label = label;
		}

		/**
		 * Always override the clone method
		 *
		 * @return 	A new instance of AddEntryEvent
		 */
		override public function clone():Event
		{
			return new AddEntryEvent(_label);
		}
	}
}